package org.gwh.airagknowledge.repository;

import org.gwh.airagknowledge.entity.Document;
import org.gwh.airagknowledge.entity.KnowledgeBase;
import org.springframework.data.jpa.repository.JpaRepository;
import org.springframework.stereotype.Repository;

import java.util.List;

@Repository
public interface DocumentRepository extends JpaRepository<Document, Long> {
    
    List<Document> findByKnowledgeBase(KnowledgeBase knowledgeBase);
    
    List<Document> findByKnowledgeBaseId(Long knowledgeBaseId);
    
    List<Document> findByFileNameContainingIgnoreCase(String fileName);
} 